@import '../assets/theme.scss';
#banner{
  min-width: $min-width;
  z-index: 100;
  $height: $banner-height;
  $top: 30px;
  $bottom: 40px;
  position: fixed;
  width: 100%;
  background: #FFF;
  height: $height;
  text-align: center;
  box-shadow: 0px 1px 1px rgba(0,0,0,0.1);
  transition: $default-transition;
  .logo{
    cursor: pointer;
    transition: $default-transition;
    float: left;
    width: $height;
    height: $height;
    background: $color-main;
    line-height: $height;
    text-align: center;
    color: #FFF;
    font-size: $height/1.4;
    text-shadow: 0px 0px 8px #FFF;
  }
  .title{
    cursor: pointer;
    float: left;
    margin: 25px;
    transition: $default-transition;
  }
  .search{
    transition: $default-transition;
    $search-height: $height - $top - $bottom;
    $border-radius: 50px;
    height: $search-height;
    position: relative;
    width: 40%;
    margin: $top auto $bottom;
    min-width: 300px;
    $btn-width: 100px;
    .input{
      position: absolute;
      left: 0px;
      right: $btn-width;
      top: 0px;
      bottom: 0px;
      i{
        position: absolute;
        top: 14px;
        left: 12px;
        font-size: 28px;
        color: $color-main;
        text-shadow: 1px 1px 1px #000;
      }
      input{
        height: 100%;
        width: 100%;
        outline:none;
        border: 1px solid $color-main;
        border-top-left-radius: $border-radius;
        border-bottom-left-radius: $border-radius;
        border-right: 0px;
        padding-left: $border-radius;
        color: $color-main;
      }
    }
    .btn{
      width: $btn-width;
      position: absolute;
      height: 100%;
      right: 0;
      background-color: $color-main;
      line-height: $search-height;
      color: #FFF;
      border-top-right-radius: $border-radius;
      border-bottom-right-radius: $border-radius;
      text-align: center;
      cursor: pointer;
      transition: all .4s ease-in-out;
      &:hover{
        background-color: $color-main - #333;
        text-shadow: 0 0 10px #FFF;
        box-shadow: 0 0 10px $color-main;
      }
      &:active{
        background-color: $color-main + #333;
      }
    }
    .hot{
      position: absolute;
      bottom: -30px;
      span{
        padding: 0 10px;
        font-size: 12px;
        &.text{
          color: $color-main;
        }
        &.item{
          cursor: pointer;
          color: #858E8F;
          transition: all .3s linear;
          &:hover{
            color: red;
            text-shadow: 0 0 10px red;
          }
        }
      }
    }
  }
  .visitor{
    transition: $default-transition;
    $visitor-height: $height / 4;
    position: absolute;
    right: 140px;
    height: $visitor-height;
    line-height: $visitor-height;
    top: ($height - $visitor-height)/2;
    .btn{
      float: left;
      width: 60px;
      text-align: center;
      box-shadow: 0 0 2px $color-main;
      border-radius: 40px;
      cursor: pointer;
      margin-right: 10px;
      transition: all .3s linear;
      color: $color-main;
      &:hover{
        color: #FFF;
        background-color: $color-main;
        box-shadow: 0 0 10px $color-main;
      }
    }
    .login{
    }
    .register{
    }
  }
  .user{
    transition: $default-transition;
    $user-height: 50px;
    position: absolute;
    right: 140px;
    height: $user-height;
    top: ($height - $user-height)/2;
    cursor: default;
    .user-info{
      .pic{
        float: right;
        border: 1px solid $color-main;
        border-radius: 50%;
        height: $user-height + 2px;
        transition: $default-transition;
        cursor: pointer;
        img{
          transition: $default-transition;
          width: $user-height;
          border-radius: $user-height/2;
          border: 2px solid #FFF;
        }
        &:hover{
          transform: scale(1.2);
          box-shadow: 0 0 6px $color-main;
          img{
            border-color: $color-main + #555;
          }
        }
      }
      .userName{
        float: right;
        line-height: $user-height;
        margin-right: 10px;
        color: $color-main;
      }
    }
    &:hover .opts{
      pointer-events: auto;
      height: 100px;
      padding-top: 10px;
    }
    .opts{
      transition: $default-transition;
      overflow: hidden;
      width: 124px;
      margin: 0 auto;
      padding-top: 0px;
      pointer-events: none;
      height: 0px;
      li{
        transition: $default-transition;
        width: 120px;
        height: 30px;
        line-height: 30px;
        border-top: 1px solid $color-main;
        margin-top: -1px;
        margin-left: 2px;
        background-color: $color-main + #555;
        color: $color-main - #333;
        cursor: pointer;
        &:hover{
          color: #FFF;
          background-color: $color-main + #111;
        }
        &.hello{
          width: 124px;
          margin-left: 0px;
          height: 4px;
          border-bottom-left-radius: 4px;
          border-bottom-right-radius: 4px;
          cursor: default;
          background-color: $color-main + #111;
        }
        &.login-out{
          border-bottom: 1px solid $color-main;
        }
        &.byby{
          cursor: default;
          margin-top: 0px;
          width: 124px;
          margin-left: 0px;
          height: 4px;
          border-top: 0px;
          border-bottom: 1px solid $color-main;
          border-top-left-radius: 4px;
          border-top-right-radius: 4px;
          background-color: $color-main + #111;
        }
      }
    }
  }
  &.small{
    height: $small-height;
    .logo{
      width: $small-height;
      height: $small-height;
      font-size: $small-height/1.4;
      line-height: $small-height;
    }
    .title{
      margin: 10px 25px;
    }
    .search{
      margin: 15px auto 15px;
      .hot{
        display: none;
      }
    }
    .visitor{
      $visitor-height: $height / 4;
      top: ($small-height - $visitor-height)/2;
    }
    .user{
      $user-height: 50px;
      top: ($small-height - $user-height)/2;
    }
  }
}